import request from '@/request/request'

//查找部门全部信息
export const GetAllJobServer = (from) => {
    const params = new URLSearchParams()
    for (let k in from) {
        params.append(k, from[k])
    }
    return request.get('/job', { params: params })
}

//删除部门
export const DeleteJobServer = (id) => {
    return request.delete('/job', { params: id })
}

//添加部门
export const AddJobServer = (deptName) => {
    return request.post(`/job/${deptName}`)
}

//编辑部门
export const EditJobServer=(deptName,id)=>{
    return request.put(`/job/${id}/${deptName}`)
}